project("swegl_dxwrapper")

set(target_file "d3d9")

# source files
file(GLOB_RECURSE lib_srcs "src/*.cpp")

# header files
file(GLOB_RECURSE lib_headers "inc/*.h")

# create group for visual studio
source_group("inc" FILES ${lib_headers})
source_group("src" FILES ${lib_srcs})
source_group("" FILES proxydll.def)

# add include directory to path
include_directories(inc ../swegl/inc/)

add_library(${target_file} SHARED ${lib_srcs} ${lib_headers} proxydll.def)
target_link_libraries(${target_file} swegl)

